package com.fengsh.nacos.controller;

import com.fengsh.nacos.feign.RemoteApiForService1;
import com.fengsh.nacos.feign.RemoteApiForService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @标题
 * @作者 fengsh998
 * @创建时间 2024/1/24
 * @功能描述
 */

@RestController
public class Application1Controller {

    @Autowired
    RemoteApiForService1 service1;

    @Autowired
    RemoteApiForService2 service2;

    @GetMapping("/service")
    public String service() {
        String s1 = service1.callService1();
        String s2 = service2.callService2();
        return "application1 result: " + s1 + " && " + s2;
    }
}
